package com.wondersgroup.fjzlpt.console.service.inter.yljgxx;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;

public interface YljgxxService {

	/**
	 * 分页查询
	 * @param map
	 * @return
	 */
	JSONObject queryPage(Map<String, String> map);

	/**
	 * 分页查询概要信息
	 * @param map
	 * @return
	 */
	JSONObject queryPageSummary(Map<String, String> map);

	/**
	 * 获取机构图片
	 * @param id
	 * @return
	 */
	byte[] receiveImage(String id);

	/**
	 * 保存
	 * @param map
	 * @return
	 */
	JSONObject save(Map<String, String> map);


	/**
	 * 删除
	 * @param map
	 * @return
	 */
	JSONObject delete(Map<String, String> map);
	
	/**
	 * 将医疗机构信息导出到Excel
	 * @param map
	 * @param request
	 * @param response
	 */
	void downloadToExcel(Map map, HttpServletRequest request, HttpServletResponse response);
}
